function reducer (prevState = {
  list1: [], list2: []
}, action = {}) {
  let newState = { ...prevState }
  switch (action.type) {
    case "change-list1":
      newState.list1 = action.playload
      console.log(newState.list1)
      return newState
    case "change-list2":
      newState.list2 = action.playload
      console.log(newState.list2)
      return newState
    default:
      return prevState
  }

}

export default reducer